NAME=./du4
CC=mpicxx

all: $(NAME)

$(NAME): main.cpp
	$(CC) -Wall -O3 -o $(NAME) main.cpp

run: $(NAME)
	 echo soubor.in | mpiexec -genv I_MPI_FABRICS shm:ofa -genv I_MPI_FALLBACK_DEVICE 0 -grr 1 -n 10 $(NAME)

run_home: $(NAME)
	  echo soubor.in | mpiexec --hostfile openmpi_hosts -np 10 $(NAME)

clear: clean

clean:
	@echo Removing program file
	@rm -f $(NAME)
